<template>
	<view>
		<!-- <text>{{section}}</text> -->
		<XzLogin v-if="section=='login'"></XzLogin>
		<XzRegister v-if="section=='register'"></XzRegister>
		<XzUserProfile v-if="section =='profile'"></XzUserProfile>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				section:'login' //用于接收用户中心哪一部分的参数
			}
		},
		onShow() {
			let section = uni.getStorageSync('userCenterSection')
			this.section =section?section:'login'
			uni.removeStorageSync('userCenterSection')
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
